package com.xc.smart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 *   @author mtl
 *   2021/6/23
 */

/**
 * 商品表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods")
public class Goods implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品编号
     */
    @TableField(value = "goods_sn")
    private String goodsSn;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品描述
     */
    @TableField(value = "goods_desc")
    private String goodsDesc;

    /**
     * 门店价格
     */
    @TableField(value = "shop_price")
    private Long shopPrice;

    /**
     * 秒杀价格
     */
    @TableField(value = "spike_price")
    private Long spikePrice;

    /**
     * 库存数量
     */
    @TableField(value = "goods_stock")
    private BigDecimal goodsStock;

    /**
     * 是否上架 0不上架 1上架
     */
    @TableField(value = "is_sale")
    private Integer isSale;

    /**
     * 是否参与秒杀 0不参与 1参与
     */
    @TableField(value = "is_spike")
    private Integer isSpike;

    /**
     * 是否是新品 0否 1是
     */
    @TableField(value = "is_new")
    private Integer isNew;

    /**
     * 商品排序号
     */
    @TableField(value = "goods_sort")
    private Integer goodsSort;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_SN = "goods_sn";

    public static final String COL_GOODS_NAME = "goods_name";

    public static final String COL_GOODS_DESC = "goods_desc";

    public static final String COL_SHOP_PRICE = "shop_price";

    public static final String COL_SPIKE_PRICE = "spike_price";

    public static final String COL_GOODS_STOCK = "goods_stock";

    public static final String COL_IS_SALE = "is_sale";

    public static final String COL_IS_SPIKE = "is_spike";

    public static final String COL_IS_NEW = "is_new";

    public static final String COL_GOODS_SORT = "goods_sort";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}